package vip.zhaotao;

import java.util.List;
import java.util.concurrent.Callable;

/**
 * 基金详情多线程
 */
public class FundDetailCallable implements Callable<List<Fund>> {

    private List<Fund> fundList;

    public FundDetailCallable(List<Fund> fundList) {
        this.fundList = fundList;
    }

    public List<Fund> call() {
        for (Fund fund : fundList) {
            fund.setDetail(EveryDayFund.getFundDetail(fund.getCode()));
        }
        return this.fundList;
    }
}
